home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 4 / ETO Development Tools 4.iso / Tools - Objects / Macintosh Programmer’s Workshop / MPW 3.1 / MPW / Interfaces / CIncludes / ErrNo.h < prev    next >
Text File  |  1990-12-13  |  2KB  |  56 lines

  1. /*
  2.  ErrNo.h -- error return codes
  3.  
  4.  Copyright American Telephone & Telegraph
  5.  Used with permission, Apple Computer Inc. (1985)
  6.  All rights reserved.
  7. */
  8.  
  9. #ifndef __ERRNO__
  10. #define __ERRNO__
  11.  
  12. /* @(#)errno.h 2.1 */
  13. /* 3.0 SID # 1.3 */
  14. /*
  15.  * Error codes
  16.  */
  17.  
  18. extern int errno;
  19.  
  20. #define EPERM         1 /* Permission Denied */
  21. #define ENOENT         2 /* No such file or directory */
  22. #define ENORSRC      3 /* No such Resource */
  23. #define EINTR         4 /* interrupted system call */
  24. #define EIO          5 /* I/O error */
  25. #define ENXIO         6 /* No such device or address */
  26. #define E2BIG         7 /* Insufficient space for return argument */
  27. /* #define ENOEXEC     8    Exec format error */
  28. #define EBADF         9 /* Bad file number */
  29. /* #define ECHILD    10    No children */
  30. /* #define EAGAIN    11    No more processes */
  31. #define ENOMEM        12 /* Not enough core */
  32. #define EACCES        13 /* Permission denied */
  33. #define EFAULT        14 /* Bad address */
  34. #define ENOTBLK     15 /* Block device required */
  35. #define EBUSY        16 /* Mount device busy */
  36. #define EEXIST        17 /* File exists */
  37. #define EXDEV        18 /* Cross-device link */
  38. #define ENODEV        19 /* No such device */
  39. #define ENOTDIR     20 /* Not a directory */
  40. #define EISDIR        21 /* Is a directory */
  41. #define EINVAL        22 /* Invalid argument */
  42. #define ENFILE        23 /* File table overflow */
  43. #define EMFILE        24 /* Too many open files */
  44. #define ENOTTY        25 /* Not a typewriter */
  45. #define ETXTBSY     26 /* Text file busy */
  46. #define EFBIG        27 /* File too large */
  47. #define ENOSPC        28 /* No space left on device */
  48. #define ESPIPE        29 /* Illegal seek */
  49. #define EROFS        30 /* Read only file system */
  50. #define EMLINK        31 /* Too many links */
  51. /* #define EPIPE    32    Broken pipe */
  52. #define EDOM        33 /* Math arg out of domain of func */
  53. #define ERANGE        34 /* Math result not representable */
  54.  
  55. #endif __ERRNO__
  56.